/* ----------------------------------------------------------------------
 *	Shadow Quest
 *	Copyright (C) 2009 Prageeth Silva <prageeth@thenewcoders.com>
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *  ----------------------------------------------------------------------
 */

package sq;

import org.newdawn.slick.Music;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.Sound;

public class SoundLoader
{

	private static boolean soundsLoaded = false;
	
	private static Music menuBgMusic, gameBgMusic;
	private static Sound menuClick;
	
	public static void loadMenuSounds()
	throws SlickException
	{
		
		String musicDirPath = "assets/sounds/music/", soundDirPath = "assets/sounds/";
		SoundLoader.menuBgMusic = new Music(musicDirPath+"menubg.ogg");
		SoundLoader.menuClick = new Sound(soundDirPath+"click.ogg");
		
	}
	
	public static void loadGameSounds()
	throws SlickException
	{
		
		String musicDirPath = "assets/sounds/music/";
		SoundLoader.gameBgMusic = new Music(musicDirPath+"gamebg.ogg");
		
		SoundLoader.soundsLoaded = true;
		
	}
	
	public static Music getMenuBgMusic() 
	{
		return SoundLoader.menuBgMusic;
	}
	
	public static Sound getMenuClick() 
	{
		return SoundLoader.menuClick;
	}
	
	public static Music getGameBgMusic() 
	{
		return SoundLoader.gameBgMusic;
	}

	public static boolean isSoundsLoaded() 
	{
		return SoundLoader.soundsLoaded;
	}
	
}
